package com.sun.showcase.client.testcase.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class TaskGroup implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * id       db_column: id 
     */	
	private java.lang.Long id;
    /**
     * 任务id       db_column: task_id 
     */	
	private java.lang.Long taskId;
    /**
     * 名称       db_column: name 
     */	
	private java.lang.String name;
	//columns END

	public TaskGroup(){
	}

	public TaskGroup(
		java.lang.Long id
	){
		this.id = id;
	}

	public void setId(java.lang.Long value) {
		this.id = value;
	}
	
	public java.lang.Long getId() {
		return this.id;
	}
	public void setTaskId(java.lang.Long value) {
		this.taskId = value;
	}
	
	public java.lang.Long getTaskId() {
		return this.taskId;
	}
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof TaskGroup == false) return false;
		if(this == obj) return true;
		TaskGroup other = (TaskGroup)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

